const path = require("path");
const resolve = require('rollup-plugin-node-resolve')
const inputPath = path.resolve(__dirname, "./src/index.js");
const outUmdPath = path.resolve(__dirname, "./dist/dataV.js");
const outESPath = path.resolve(__dirname, "./dist/dataV.ES.js");
const babel = require('rollup-plugin-babel')
const commonJs  = require('rollup-plugin-commonjs')
module.exports = {
  input: inputPath, //输入文件
  output: [
    {
      file: outUmdPath,
      format: "umd",
      name: "immockDEVE",
    },
    {
      file: outESPath,
      format: "es",
      name: "immockDEVE",
    },
  ],
  plugins:[
    resolve(),
    commonJs(),
    babel({
      exclude:"node_module/**"
    })
  ],
  external:['vue']
};
